#ifndef SASTRUCDEF_H
#define SASTRUCDEF_H

#include <vector>

typedef unsigned long  ULONG;
typedef unsigned int   UINT;
typedef          int   INT;
typedef unsigned short USHORT;
typedef          short SHORT;
typedef unsigned char  UCHAR;
typedef          char  CHAR;

struct MAP_ATTR
{
    UCHAR atari_x,atari_y;
    USHORT hit;
    SHORT height;
    SHORT broken;
    SHORT indamage;
    SHORT outdamage;
    SHORT inpoison;
    SHORT innumb;
    SHORT inquiet;
    SHORT instone;
    SHORT indark;
    SHORT inconfuse;
    SHORT outpoison;
    SHORT outnumb;
    SHORT outquiet;
    SHORT outstone;
    SHORT outdark;
    SHORT outconfuse;
    SHORT effect1;
    SHORT effect2;
    USHORT damy_a;
    USHORT damy_b;
    USHORT damy_c;
    UINT bmpnumber;
};


struct ADRNBIN
{
    ULONG	bitmapno;
    ULONG	adder;
    ULONG	size;
    INT     xoffset;
    INT     yoffset;
    UINT    width;
    UINT    height;
    MAP_ATTR attr;
};

struct SPRADRN
{
    ULONG  sprNo;
    ULONG  offset;
    USHORT animSize;
};

struct FRAMELIST
{
    ULONG  BmpNo;
    SHORT  PosX, PosY;
    //USHORT SoundNo;
};

struct ANIINFO
{
    USHORT dir;
    USHORT no;
    ULONG  dtAnim;
    ULONG  frameCnt;
};

struct ANIMLIST
{
    ANIINFO info;
    std::vector<FRAMELIST> frameList;
};

struct SPRITEDATA
{
    USHORT animSize;
    std::vector<ANIMLIST> animlist;
};



#endif // SASTRUCDEF_H
